package com.meteor.user.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.meteor.framework.mybatis.dao.BaseDao;
import com.meteor.user.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 系统用户
 * 
 * @author lynn
 * @date 2024/1/03
 */
@Mapper
public interface SysUserMapper extends BaseDao<SysUser> {

	List<SysUser> getList(Map<String, Object> params);

	SysUser getById(@Param("id") Long id);

	List<SysUser> getRoleUserList(Map<String, Object> params);

	SysUser getByUsername(@Param("username") String username,@Param("merchantId") String merchantId,@Param("communityId") String communityId);

	SysUser getByMobile(@Param("mobile") String mobile,@Param("communityId") String communityId);
}